package com.bto.solar.work.controller;

import com.bto.solar.work.common.R;
import com.bto.solar.work.service.BtoDeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 王小波
 * @description:
 * @date 2023/11/27 10:29
 */
@RestController
@RequestMapping("test")
public class TestController {
    @Autowired
    private BtoDeviceService btoDeviceService;

    @PostMapping("sto-test")
    public R stoTest(){
        btoDeviceService.updateOrderDevicesUsedInSto("2311211747243006");
        return R.ok();
    }

}
